/**
 * 常量定义
 */
import { getApiBaseUrl } from '../config/env';

// 存储键名
export const STORAGE_KEYS = {
  TOKEN: 'token',
  USER_INFO: 'userInfo',
  SETTINGS: 'settings'
};

// 请求状态码
export const HTTP_STATUS = {
  SUCCESS: 200,
  CREATED: 201,
  ACCEPTED: 202,
  NO_CONTENT: 204,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  SERVER_ERROR: 500
};

// 请求方法
export const HTTP_METHOD = {
  GET: 'GET',
  POST: 'POST',
  PUT: 'PUT',
  DELETE: 'DELETE'
};

// 页面路径
export const ROUTES = {
  INDEX: '/pages/index/index',
  LOGIN: '/pages/login/login',
  USER: '/pages/user/user',
  USER_EDIT: '/pages/user/edit',
  AGREEMENT: '/pages/agreement/agreement'
};

// 协议类型
export const AGREEMENT_TYPES = {
  USER: 'user',
  PRIVACY: 'privacy'
};

// 菜单项
export const MENU_ITEMS = [
{
    id: 'about',
    text: '关于我们',
    path: '/pages/about/index',
    icon: 'info-circle',
    needLogin: false
  }
];

// 默认头像
export const DEFAULT_AVATAR = '/static/default-avatar.png';

// 接口基础路径
export const BASE_URL = getApiBaseUrl(); 